BinaryConverterTest.ToByte

Turns a string into a byte array using the BinaryConverter.ObjectToByteArrayAsync method

public async Task<byte[]> ToByte()
{
    return await BinaryConverter.ObjectToByteArrayAsync("This is a test string.");
}